
var MusicPlayer = {
		
		playClickBtnEffect : function() {
			if(music)
				cc.audioEngine.playEffect(res.buttonClickEffect, false);
		},

		playStartLayerBgMusic : function() {
			if(music)
				cc.audioEngine.playMusic(res.startBgMusic, true);
		},

		playGameLayerBgMusic : function() {
			if(music)
				cc.audioEngine.playMusic(res.playingBgMusic, true);
		},
		
		playStopMusic : function(isPlay) {
			if(isPlay) {

			}
		},
		
		pauseResumeMusic : function(isResume) {
			if(isResume)
				if(music)
					cc.audioEngine.resumeMusic();
				else
					cc.audioEngine.pauseMusic();
		}
}

//reset
resetData = function() {
	ballCount = 0;
	removedBallCount = 0;
	ballCollidedCount = new Array();
	maxCollidedCount = 5;

	ballVelocityX = 300;
	ballVelocityY = 300;

	paused = false;
	oldtime = -1;
	moveDelta = null;
	
	clearBallActivated = true;
	slowerPlayed = false;
	ballSlower = false;
	barLonger = false;

	storeClick = false;
	storeShow = false;
}